#ifndef TINGSWARNINGWIDGET_H
#define TINGSWARNINGWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QTableWidget>
#include <QVector>

#include "data/stockdata.h"
#include "control/mycontrol.h"
#include "model/basemodel.h"
#include "model/stockrecordmodel.h"

class TingsWarningWidget : public QWidget
{
    Q_OBJECT
public:
    explicit TingsWarningWidget(QWidget *parent = nullptr);
    void init_Control();
      void init_Widget();
      void init_Connect();//初始化连接信号和槽
      void CheckInfomation();
private:
    QTableWidget *table;
    QPushButton *returnbtn;
    QVBoxLayout *lay;
    StockData **stock;
    BaseModel *model;
    MyControl *control;
    QVector<StockData> addstock;

signals:
    void returnWidget();

public slots:
     void on_backBtn_cliked();//注册按钮的槽函数
};

#endif // TINGSWARNINGWIDGET_H
